package com.example.his.api.mis.controller.form.checkup;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.ArrayList;

@Data
public class AddCheckupResultForm {
  
  @NotBlank(message = "name不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{2,10}$", message = "name格式错误")
  private String name;
  
  @NotBlank(message = "uuid不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9]{32}$", message = "uuid格式错误")
  private String uuid;
  
  @NotBlank(message = "place不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{2,30}$", message = "place格式错误")
  private String place;
  
  @NotEmpty(message = "item不能为空")
  private ArrayList item;
  
  @NotBlank(message = "template不能为空")
  private String template;
  
  
}
